﻿using Application.AppService.MCAppService;
using AutoMapper;
using Domain;
using Microsoft.AspNetCore.Mvc;

namespace UI.Controllers.Transfer_management_调动管理_
{
	public class SelectMCController : Controller
	{
		private readonly IMCAppService mCAppService;
		private readonly IMapper mapper;

		public SelectMCController(IMCAppService mCAppService, IMapper mapper)
        {
			this.mCAppService = mCAppService;
			this.mapper = mapper;
		}
        public IActionResult Index()
		{
			return View();
		}
		public IActionResult Index1()
		{
			return View();
		}
		public IActionResult Index2()
		{
			return View();
		}
		public IActionResult SelectMC(string checkReason, string newfirstKindName, string newsecondKindName, string newthirdKindName, string newmajorKindName, string newmajorName, DateTime startDate, DateTime endDate, int page, int pageSize)
		{
			MCFenYe mCFenYe = mCAppService.SelectMC(checkReason, newfirstKindName, newsecondKindName, newthirdKindName, newmajorKindName, newmajorName, startDate, endDate, page, pageSize);
			return Json(mCFenYe);
		}
	}
}
